package com.yyf.springboot2.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Generated;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.annotation.Id;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;


/**
 * <p>
 * 
 * </p>
 *
 * @author yyf
 * @since 2019-05-29
 */
@TableName("t_order")
@EntityScan
@Data
public class TOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
	private Integer id;
	private String address;
	@TableField("createTime")
	private Date createTime;
	@TableField("handlerTime")
	private Date handlerTime;
	@TableField("isPay")
	private Integer isPay = 0;
	@TableField("isReceipt")
	private Integer isReceipt = 0;
	@TableField("isSend")
	private Integer isSend = 0;
	private String name;
	@TableField("orderId")
	private String orderId;
	@TableField("payType")
	private Integer payType;
	private String phone;
	@TableField("serialNumber")
	private String serialNumber;
	private Integer stat; // 0未付款  1,已付款
	@TableField("totalPV")
	private Double totalPV;
	@TableField("totalPrice")
	private Double totalPrice;
	private Integer type;
	@TableField("userId")
	private Integer userId;
	@TableField("baodanId")
	private Integer baodanId;
	@TableField("userType")
	private Integer userType;
	private String words;
	private Integer num = 0;
	@TableField("totalScore")
	private Double totalScore;
	@TableField("completeTime")
	private Date completeTime;
	private String logistics;
	private Integer tuihuo;
    /**
     * 会员即将升级类型
     */
	@TableField("shengjiType")
	private Integer shengjiType;
	private Integer city;
	private Integer county;
	@TableField("payMoney1")
	private Double payMoney1;
	@TableField("payMoney2")
	private Double payMoney2;
	private Integer province;
	@TableField("payTime")
	private Date payTime;
	@TableField("payWay")
	private Integer payWay;
	@TableField("shopId")
	private Integer shopId;


	@TableField(exist = false) //表明该字段不需要从数据库中查
	private TOrderlist orderlist;
	@TableField(exist = false)
	private List<TOrderlist> orderlists;
	@TableField(exist = false)
	private String orderName;
	@TableField(exist = false)
	private  String statName;

	@Transient
	public String getStatName() {
		return statName;
	}

	public void setStatName(String statName) {
		this.statName = statName;
	}

	@Transient
	public String getOrderName() {
		return orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	@Transient
	public List <TOrderlist> getOrderlists() {
		return orderlists;
	}

	public void setOrderlists(List <TOrderlist> orderlists) {
		this.orderlists = orderlists;
	}

	@Transient
	public TOrderlist getOrderlist() {
		return orderlist;
	}

	public void setOrderlist(TOrderlist orderlist) {
		this.orderlist = orderlist;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getHandlerTime() {
		return handlerTime;
	}

	public void setHandlerTime(Date handlerTime) {
		this.handlerTime = handlerTime;
	}

	public Integer getIsPay() {
		return isPay;
	}

	public void setIsPay(Integer isPay) {
		this.isPay = isPay;
	}

	public Integer getIsReceipt() {
		return isReceipt;
	}

	public void setIsReceipt(Integer isReceipt) {
		this.isReceipt = isReceipt;
	}

	public Integer getIsSend() {
		return isSend;
	}

	public void setIsSend(Integer isSend) {
		this.isSend = isSend;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public Integer getStat() {
		return stat;
	}

	public void setStat(Integer stat) {
		this.stat = stat;
	}

	public Double getTotalPV() {
		return totalPV;
	}

	public void setTotalPV(Double totalPV) {
		this.totalPV = totalPV;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getBaodanId() {
		return baodanId;
	}

	public void setBaodanId(Integer baodanId) {
		this.baodanId = baodanId;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getWords() {
		return words;
	}

	public void setWords(String words) {
		this.words = words;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Double getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(Double totalScore) {
		this.totalScore = totalScore;
	}

	public Date getCompleteTime() {
		return completeTime;
	}

	public void setCompleteTime(Date completeTime) {
		this.completeTime = completeTime;
	}

	public String getLogistics() {
		return logistics;
	}

	public void setLogistics(String logistics) {
		this.logistics = logistics;
	}

	public Integer getTuihuo() {
		return tuihuo;
	}

	public void setTuihuo(Integer tuihuo) {
		this.tuihuo = tuihuo;
	}

	public Integer getShengjiType() {
		return shengjiType;
	}

	public void setShengjiType(Integer shengjiType) {
		this.shengjiType = shengjiType;
	}

	public Integer getCity() {
		return city;
	}

	public void setCity(Integer city) {
		this.city = city;
	}

	public Integer getCounty() {
		return county;
	}

	public void setCounty(Integer county) {
		this.county = county;
	}

	public Double getPayMoney1() {
		return payMoney1;
	}

	public void setPayMoney1(Double payMoney1) {
		this.payMoney1 = payMoney1;
	}

	public Double getPayMoney2() {
		return payMoney2;
	}

	public void setPayMoney2(Double payMoney2) {
		this.payMoney2 = payMoney2;
	}

	public Integer getProvince() {
		return province;
	}

	public void setProvince(Integer province) {
		this.province = province;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Integer getPayWay() {
		return payWay;
	}

	public void setPayWay(Integer payWay) {
		this.payWay = payWay;
	}

	public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

}
